package com.lizheng.yunservice.travel.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lizheng.yunservice.common.page.TableDataInfo;
import com.lizheng.yunservice.travel.doamin.bo.VtpCulturalQueryBoPageSearch;
import com.lizheng.yunservice.travel.doamin.vo.VtpCulturalVoPageSearch;
import com.lizheng.yunservice.travel.mapper.VtpCulturalMapperPageSearch;
import com.lizheng.yunservice.travel.service.IVtpCulturalServicePageSearch;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class VtpCulturalServiceImplPageSearch implements IVtpCulturalServicePageSearch {
    private final VtpCulturalMapperPageSearch culturalMapper;

    @Override
    public TableDataInfo<VtpCulturalVoPageSearch> queryAppPageList(VtpCulturalQueryBoPageSearch queryBo) {
        Page<VtpCulturalVoPageSearch> page = culturalMapper.selectAppPage(queryBo.build(), queryBo);
        return TableDataInfo.build(page);
    }
}